package com.ocom.mqsimple.controller;

import com.ocom.mqsimple.utils.AccessRabbitProductUitl;
import com.ocom.mqsimple.utils.HumanRabbitProductUitl;
import com.ocom.mqsimple.utils.RabbitProductUitl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/5/27
 **/
@RestController
public class TestController {

	@Autowired
	private AccessRabbitProductUitl accessRabbitProductUitl;


	@Autowired
	private RabbitProductUitl rabbitProductUitl;

	@Autowired
	private HumanRabbitProductUitl humanRabbitProductUitl;

	@GetMapping("/test")
	public void send(){
		accessRabbitProductUitl.changeAccess("44444",1);
	}
	@GetMapping("/test1")
	public void send1(){
		rabbitProductUitl.send("44444",1);
	}
	@GetMapping("/test2")
	public void send2(){
		humanRabbitProductUitl.humansend("44444",1);
	}
}
